﻿<!DOCTYPE html>
<html lang="zh">

<head resource>
    <meta charset="utf-8">
    <include file="../inc/meta.inc" />
    <title>课程学习成绩的详情</title>
</head>

<body>
    <div id="vapp" v-cloak>
        <template v-if="loading_init">
            <loading>...</loading>
        </template>
        <template v-else-if="!islogin">
            <alert class="nolog">未查询到学员信息</alert>
        </template>
        <loading v-else-if="loading">...</loading>
        <template v-else-if="isnull">
            没有学习记录
        </template>
        <template v-else>
            <div class="row video">
                <span>1、视频学习完成<b>{{purchase.Stc_StudyScore}}%</b>，
                    权重<b>{{orgconfig('finaltest_weight_video',33.3)}}%</b>，</span>
                <span>得分：{{Math.round(score.video*100)/100}}</span>
            </div>
            <div class="row ques">
                <span>2、试题通过率达到<b>{{purchase.Stc_QuesScore}}%</b>，
                    权重<b>{{orgconfig('finaltest_weight_ques',33.3)}}%</b>，</span>
                <span>得分：{{Math.round(score.ques*100)/100}}</span>
            </div>
            <div class="row exam">
                <span>3、结课考试得分<b>{{purchase.Stc_ExamScore}}分</b>，
                    权重<b>{{orgconfig('finaltest_weight_exam',33.3)}}%</b>，</span>
                <span>得分：{{Math.round(score.exam*100)/100}}</span>
            </div>
            <div class="footer">
                <div>
                    <el-button v-if="true" type="primary" plain @click="refresh_data()" :loading="loading_fresh!=0">
                        更新学习记录</el-button>
                </div>
                <div class="score">综合成绩：<span :class="{'nopass':score.score<60}">{{Math.round(score.score*100)/100}}
                    </span>分</div>
            </div>
        </template>
    </div>


</body>

</html>